//
//  GoldView.m
//  MTDBFROMJSON
//
//  Created by Tim Huo on 9/15/13.
//  Copyright (c) 2013 kingPC. All rights reserved.
//

#import "GoldView.h"
#import "ViewController.h"

@implementation GoldView

- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        // Initialization code
    }
    return self;
}

-(void)nextView{
    if (self.CurrentgoldLeve.frame.origin.y>32) {
        [UIView animateWithDuration:0.5 animations:^(void){
            self.CurrentgoldLeve.frame=CGRectMake(self.CurrentgoldLeve.frame.origin.x, self.CurrentgoldLeve.frame.origin.y-29, self.CurrentgoldLeve.frame.size.width, self.CurrentgoldLeve.frame.size.height);
        }completion:^(BOOL finish){
            ViewController *R=(ViewController*)self.RootVC;
            [R performSelector:@selector(restartNextView) withObject:nil afterDelay:1.0f];
        }];
    }
}

@end
